package com.czmh.etc.onlinepubsys.exceptions;

import lombok.Data;

@Data
public class EtcMsgException extends RuntimeException {
    private Object code;

    public EtcMsgException(String message) {
        super(message);
    }

    public EtcMsgException(Object code, String message) {
        super(message);
        this.code = code;
    }

    public EtcMsgException(Throwable cause) {
        super(cause);
    }

    public EtcMsgException(Throwable cause, Object code) {
        super(cause);
        this.code = code;
    }
}
